package com.campsys.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.campsys.entity.TeachingUnit;
import com.campsys.entity.LearningRecord;
import com.campsys.service.dto.TeachingUnitDTO;
import com.campsys.service.dto.TeachingUnitQueryDTO;

public interface TeachingUnitService {
    
    IPage<TeachingUnit> getUnitList(Page<TeachingUnit> page, TeachingUnitQueryDTO queryDTO, Long teacherId);
    
    void addUnit(TeachingUnitDTO unitDTO, Long teacherId);
    
    void updateUnit(TeachingUnitDTO unitDTO, Long teacherId);
    
    void deleteUnit(Long id, Long teacherId);
    
    void updateStatus(Long id, Integer status, Long teacherId);
    
    IPage<LearningRecord> getUnitLearningRecords(Page<LearningRecord> page, Long unitId, Long teacherId);
} 